<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>家居客家具预定列表</title>
<style type="text/css">
	input {
		margin: 10px;
	}
</style>
<script type="text/javascript">
	function check() {
		var band = document.getElementsByName("order.bandInfo.name")[0].value;
		var contact = document.getElementsByName("order.FContact")[0].value;
		var phone = document.getElementsByName("order.FPhone")[0].value;
		
		if (band == ("请选择")) {
			alert("请选择家具品牌");
			return false;
		}
		if (contact == ("")) {
			alert("请输入您的联系方式");
			return false;
		}
		if (phone == ("")) {
			alert("请输入您的联系电话");
			return false;
		}
		return true;
	}
</script>
</head>
<body>
<div style="width: 400px;margin-left: auto;margin-right: auto">
	<h1>家居客家具预定</h1>
	<h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;——永不褪色的美</h2>
<form action="order_add" onsubmit="return check()" method="post">
	家具品牌：
	<select name="order.bandInfo.name">
		<option>请选择</option>
		<s:iterator value="blist">
			<option><s:property value="name"/></option>
		</s:iterator>
	</select>
	<br/>
	产品类别：
	<input type="radio" name="order.FType" value="床" checked="checked">床
	<input type="radio" name="order.FType" value="床垫">床垫
	<input type="radio" name="order.FType" value="床头柜">床头柜
	<input type="radio" name="order.FType" value="地柜">地柜
	<br/>
	联系人：<input type="text" name="order.FContact"><br/>
	联系电话:<input type="text" name="order.FPhone"><br/>
	<input type="submit" value="提交预定">
</form>
</div>
</body>
</html>